package com.bdzl.pub.util.param;

import java.io.Serializable;
import java.util.List;

/**
 * @Author xnew 
 */
public class PageUtils implements Serializable {
	private static final long serialVersionUID = 1L;
	private int total;
	private List<?> rows;
	private int code;
	private String msg;
	public PageUtils(List<?> list, Long total) {
		this(list,total.intValue());
	}

	public PageUtils(List<?> list, int total) {
		this.rows = list;
		this.total = total;
		this.code = 0;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<?> getRows() {
		return rows;
	}

	public void setRows(List<?> rows) {
		this.rows = rows;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	

}
